package main.java.ssm.dao;

import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import ssm.base.SeeStudent;
import ssm.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * Created by silence on 17-5-26.
 */
@Repository
public interface IUserDao {
    int deleteByPrimaryKey(Integer Id);

    int insert(User record);

    int insertSelective(User record);


    User selectByPrimaryKey(Integer Id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User findByLogin(User user);

    List<User> findByParams(User u, RowBounds rowBound);

    int findAllCount(User u);

    List<User> findHotUser();

    List<User> findAllByQuery() ;

    List<User> list(Map<String, Object> map);

    Long getTotal(Map<String, Object> map);

    User findUserByUsername(String username);

    /*取得操作记录*/
    List<User>  queryAllRecord(SeeStudent seeStudent);

    /*取得记录条数信息，通过当前用户的loginName查询*/
    int getCount();
}
